﻿package mortal.game.view.common
{
    import __AS3__.vec.*;
    import com.gengine.utils.*;
    import com.mui.containers.*;
    import flash.text.*;
    import mortal.common.*;
    import mortal.common.font.*;
    import mortal.common.global.*;

    public class ObjTeamCreate extends Object
    {

        public function ObjTeamCreate()
        {
            return;
        }// end function

        public static function setTextFieldKeyValue(param1:TextField, param2:String, param3:String = "", param4:String = "", param5:String = "") : void
        {
            if (!param4)
            {
                param4 = GlobalStyle.colorPutong;
            }
            if (!param5)
            {
                param5 = GlobalStyle.colorAnjin;
            }
            param1.htmlText = HTMLUtil.addColor(param2, param4) + HTMLUtil.addColor(param3, param5);
            return;
        }// end function

        public static function createTitles(param1:Vector.<TitleItem>, param2:TextFormat = null) : GBox
        {
            if (!param2)
            {
                param2 = new GTextFormat(FontUtil.songtiName, 12, GlobalStyle.colorAnjinUint);
                param2.align = TextFormatAlign.CENTER;
            }
            var _loc_3:* = new GBox();
            var _loc_4:int = 0;
            while (_loc_4 < param1.length)
            {
                
                UIFactory.textField(param1[_loc_4].titleName, 0, 0, param1[_loc_4].width, 20, _loc_3, param2);
                _loc_4++;
            }
            return _loc_3;
        }// end function

    }
}
